package com.lanyam.travel.base.entity;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author rosson
 * @since 2020-02-22
 */
@TableName("goods_info")
public class GoodsInfo extends Model<GoodsInfo> {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
    /**
     * 商品名称
     */
	@JsonProperty(value="goodName")
    @TableField("good_name")
    private String goodName;
    /**
     * 默认价格
     */
	@JsonProperty(value="defaultPrice")
    @TableField("default_price")
    private BigDecimal defaultPrice;
    /**
     * 默认数量
     */
	@JsonProperty(value="defaultCount")
    @TableField("default_count")
    private Integer defaultCount;
    /**
     * 所属酒店,景点,线路ID
     */
	@JsonProperty(value="shtId")
    @TableField("sht_id")
    private String shtId;
    /**
     * 商品类型(0景点，1酒店，2线路)
     */
	@JsonProperty(value="goodType")
    @TableField("good_type")
    private Integer goodType;
	@JsonProperty(value="coverUrl")
    @TableField("cover_url")
    private String coverUrl;
    /**
     * 是否启用(0:禁用,1:启用)
     */
    private Integer enabled;
    /**
     * 商品描述
     */
    private String description;
    
    @JsonProperty(value="goodsDateList")
    @TableField(exist = false)
    private List<GoodsDate> goodsDateList;


    public List<GoodsDate> getGoodsDateList() {
		return goodsDateList;
	}

	public void setGoodsDateList(List<GoodsDate> goodsDateList) {
		this.goodsDateList = goodsDateList;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getId() {
        return id;
    }

    public GoodsInfo setId(String id) {
        this.id = id;
        return this;
    }

    public String getGoodName() {
        return goodName;
    }

    public GoodsInfo setGoodName(String goodName) {
        this.goodName = goodName;
        return this;
    }

    public BigDecimal getDefaultPrice() {
        return defaultPrice;
    }

    public GoodsInfo setDefaultPrice(BigDecimal defaultPrice) {
        this.defaultPrice = defaultPrice;
        return this;
    }

    public Integer getDefaultCount() {
        return defaultCount;
    }

    public GoodsInfo setDefaultCount(Integer defaultCount) {
        this.defaultCount = defaultCount;
        return this;
    }

    public String getShtId() {
        return shtId;
    }

    public GoodsInfo setShtId(String shtId) {
        this.shtId = shtId;
        return this;
    }

    public Integer getGoodType() {
        return goodType;
    }

    public GoodsInfo setGoodType(Integer goodType) {
        this.goodType = goodType;
        return this;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public GoodsInfo setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
        return this;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public GoodsInfo setEnabled(Integer enabled) {
        this.enabled = enabled;
        return this;
    }
}
